home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC-SIG: Essential Home & Business
/
PC-SIG - Essential Home and Business Collection.iso
/
22
/
3
/
4
/
SEL.MAN
< prev
next >
Wrap
Text File
|
1989-11-27
|
8KB
|
212 lines
▄▄▄▄ ▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄
█ ▀ █ █ █ █ █ ▀
█ █ █▄▄▄█ █▄▄▄ █▀▄▀█ █ █
█ █▄▄▄ █ █ █ █ █ █ █
█▄▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █ █ █ █ █▄▄█
┌─────────────────────────────────────────────────┐
│ │
│ A N S I C O L O R / P R O M P T │
│ │
│ S E L E C T O R │
│ │
│ f o r D O S a n d O S / 2 │
│ │
│ V e r s i o n 6 . 0 5 │
│ │
└─────────────────────────────────────────────────┘
Programs and Documentation are Copyright 1989 by clySmic soƒtware.
All rights reserved.
SEL is an ANSI color selector for those who use any ANSI screen driver
(ANSI.SYS, NANSI.SYS, &c. under DOS; ANSI ON for OS/2). SEL allows
easy color selection using mnemonics instead of numbers; has a random
color selection mode; and sets the prompt to a contrasting color.
0. WHAT'S NEW IN VERSION 6.05
This new version uses a slightly slower, but more "well-behaved"
technique for setting environment variables. Otherwise, it works the
same as SEL 6.04.
The program is now run from a .BAT or .CMD file (hereafter referred to
as a batch file). Because of this change, if you invoke SEL inside
another batch file use CALL SEL, not just SEL, which won't return to
the first batch file. Also, please remember to remove SEL.EXE (the
old, 6.04 version) from your path if you upgrade to this version.
I. FILES
SEL.BAT.............The batch file that runs SELPRG.EXE under DOS.
SELPRG.EXE..........The SEL program for MS-DOS.
SEL.CMD.............The command file that runs SELPRG2.EXE under OS/2.
SELPRG2.EXE.........The SEL program for OS/2.
To install, copy either SEL.BAT and SELPRG.EXE (for DOS users), or
SEL.CMD and SELPRG2.EXE (for OS/2 users) to a directory on your PATH.
To invoke, type SEL [parms], where [parms] are optional parameters.
II. PARAMETERS
None................A randomly selected color scheme, including the
prompt.
/ƒ/ß/π..............Foreground color ƒ on background color ß with
prompt color π. Note that ANY of these parms can
be dropped out, in which case the current color
for that value is used. For example, ///lm
changes the prompt color to LightMagenta without
disturbing the other colors. A parameter of ///
keeps the same colors as before (useful when
changing the SELPROMPT, see below).
/? or an error......A help screen summarizing your options and showing
your current colors.
III. COLOR NAMES
The colors have the following names:
Parameter Color
------------------------------
k..............Black
b..............Blue
g..............Green
c..............Cyan
r..............Red
m..............Magenta
br.............Brown
w..............White
dg.............Dark Gray
lb.............Light Blue
lg.............Light Green
lc.............Light Cyan
lr.............Light Red
lm.............Light Magenta
y..............Yellow
lw.............Light White
IV. COLOR RULES
Identical foreground/background or prompt/background colors are not
allowed.
Dark Gray thru Light White cannot be used as background colors.
V. EXAMPLES
sel /lm/b/w LightMagenta on Blue with a White prompt.
sel /y Yellow foreground with the current background and
prompt colors.
sel ///br Brown prompt and leaves other colors alone.
sel //g Green background and leaves other colors alone.
VI. SCREEN CLEARING
Under MS-DOS, if you use a background color other than black, and have
certain kinds of TSRs loaded, a CLS won't fill the screen with the
background color. This is actually an MS-DOS bug that has to do with
CLS' ANSI detection and interrupt hooking by TSRs. I recommend using
CS.COM, a CLS replacement from PC Magazine instead of CLS.
VII. THE PROMPT
SEL sets the prompt's color and its format. The MS-DOS default is
$p$g which gives the current path and the > sign. For example, if you
were in the \FUBAR directory on drive C: the prompt would be:
C:\FUBAR>
Even though this isn't MS-DOS' default, its very popular.
Under OS/2 the default [$p] prompt is used.
You can have SEL use ANY prompt you wish by setting the SELPROMPT
environment variable. For instance, to have SEL use the boring old
regular MS-DOS prompt, enter the following DOS command:
SET SELPROMPT=$n$g
Another example:
SET SELPROMPT=Yes, Master:
To try out prompts without changing any colors, keep setting SELPROMPT
and then use SEL ///.
To cause SEL to use its default prompt format again, remove the
variable like so:
SET SELPROMPT=
and run SEL ///.
Consult your MS-DOS or OS/2 manual for more information on special
characters you can use in the prompt.
VIII. TECH STUFF
SEL uses an environment variable called SELCOLOR to "remember" the
current colors as the ANSI driver doesn't do this.
SEL.BAT runs SELPRG.EXE, the main program, which creates and executes
SELSET.BAT (or .CMD) in the same directory as SELPRG.EXE each time SEL
is run. SELSET.BAT/.CMD is the batch file used to change the PROMPT
and SELCOLOR environment variables. This method is more compatible
than version 6.04's method of altering the environment. This is also
the only method that would work under OS/2.
Since the SELSET.BAT/.CMD file remains in the directory when you
power-off, if you put SEL /// in your AUTOEXEC.BAT (or in your Full
Screen startup file under OS/2) you will always get the last colors
you set before powering off.
Under MS-DOS its possible to run out of room in the environment. If
this happens, consult your MS-DOS manual for the command to give
yourself more environment space (it varies from version to version).
SEL was tested under MS-DOS versions 3.31 and 4.01, and OS/2 1.2.
SEL is copyrighted by clySmic soƒtware, and is released as Freeware.
However, a small (say $5) donation would be appreciated if you find
SEL useful.
You may copy the program and distribute it without charge. You may
not sell or otherwise charge for SEL. However, users' groups may
charge a small fee (not to exceed $7) for media and postage.
This program is provided AS IS without any warranty, expressed or
implied, including but not limited to fitness for a particular
purpose. So there.
clySmic soƒtware is not responsible for anything that may happen when
you use SEL, including hardware damage, information loss, or time
warps.
Ralph B Smith Jr
clySmic soƒtware
P. O. Box 2271
Empire State Plaza
Albany, NY 12220
CompuServe 76156,164